﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Update.aspx.cs" Inherits="RichECMS.ServerPages.Section.Update"
    ValidateRequest="false" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>河南锐之旗CMS网站内容管理平台系统</title>
    <meta name="Keywords" content="河南锐之旗CMS网站内容管理平台系统" />
    <meta name="Description" content="河南锐之旗CMS网站内容管理平台系统" />
    <meta name="auther" content="河南锐之旗信息技术有限公司|河南企汇网信息技术有限公司" />
    <link href="../../sysCommon/sysStyle/Pages.css" type="text/css" rel="stylesheet" />
    <link href="../../sysCommon/sysStyle/style.css" type="text/css" rel="stylesheet" />
    <script src="../../sysCommon/sysScripts/jquery/1.7.2/Jquery.js" type="text/javascript"></script>
    <script src="../../Keditor/kindeditor-min.js" type="text/javascript"></script>
    <script src="../../Keditor/lang/zh_CN.js" type="text/javascript"></script>
    <link href="../../sysCommon/sysScripts/Uploadfly/3.1/uploadify.css" rel="stylesheet"
        type="text/css" />
    <script src="../../sysCommon/sysScripts/Uploadfly/3.1/jquery.uploadify-3.1.min.js"
        type="text/javascript"></script>
    <script type="text/javascript" language="javascript">
        var auth = "<% = Request.Cookies[FormsAuthentication.FormsCookieName]==null ? string.Empty : Request.Cookies[FormsAuthentication.FormsCookieName].Value %>";
        var ASPSESSID = "<%= Session.SessionID %>";

        $(function () {
            $('#custom_file_upload').uploadify({
                'swf': '../../sysCommon/sysScripts/Uploadfly/3.1/uploadify.swf',
                'uploader': '../../IHandler/UploadImg.ashx',
                'formData': { 'ASPSESSID': ASPSESSID, 'AUTHID': auth },
                'auto': true,
                'multi': false,
                'buttonImage': '../../sysCommon/sysImages/systerm/button_2.jpg',
                'width': '82',
                'height': '22',
                'onUploadError': function (file, errorCode, errorMsg, errorString) {
                    // alert("文件:" + file.name + "上传失败\r\n错误信息:" + errorString);
                    alerttispage("文件:" + file.name + "上传失败<br />错误信息:" + errorString, "2秒后自动关闭", "var unuserdparams=1");
                },
                'onCancel': function (file) {
                    //alert("取消了" + file.name);
                },
                'onUploadSuccess': function (file, data, response) {
                    var datainfo = $.parseJSON(data);
                    if (datainfo.status == true) {
                        $('#Imghidden').val(datainfo.filepath);
                        $(".imgshowbox").show();
                        $('#ImgShow').attr("src", $("#Hiddenpathmain").val() + datainfo.filepath);
                    }
                    else {
                        alerttispage("上传失败<br />错误信息：" + datainfo.errorMessage, "2秒后自动关闭", "var unuserdparams=1");
                        //alert("上传失败\r\n信息:" + datainfo.errorMessage);
                    }
                }
            });
            var editor = KindEditor.create('textarea[id="txtContent"]', {
                uploadJson: '../../IHandler/UpAgAttachHandler.ashx',
                extraFileUploadParams: {
                    'ASPSESSID': ASPSESSID,
                    'AUTHID': auth
                },
                filterMode: false,
                items: ['source', '|', 'undo', 'redo', '|', 'preview', 'print', 'template', 'code', 'cut', 'copy', 'paste',
        'plainpaste', 'wordpaste', '|', 'justifyleft', 'justifycenter', 'justifyright',
        'justifyfull', 'insertorderedlist', 'insertunorderedlist', 'indent', 'outdent', 'subscript',
        'superscript', 'clearhtml', 'quickformat', 'selectall', '|', 'fullscreen', '/',
        'formatblock', 'fontname', 'fontsize', '|', 'forecolor', 'hilitecolor', 'bold',
        'italic', 'underline', 'strikethrough', 'lineheight', 'removeformat', '|', 'image', 'multiimage',
        'flash', 'media', 'insertfile', 'table', 'hr', 'emoticons', 'baidumap', 'pagebreak',
        'anchor', 'link', 'unlink', '|', 'about'],
                allowImageUpload: true
            });
        });
    </script>
    <script type="text/javascript">
        $(document).ready(function () {
            $(".SEOInfo").hide();
            $(".imgeditBtn").click(function () {
                $(".imgeditarea").toggle();
                return false;
            });
            $(".SEObtn").bind("click", function () {
                if ($(".SEOInfo").css("display") == "none") {
                    $(".SEOInfo").css("display", "block");
                }
                else {
                    $(".SEOInfo").css("display", "none");
                }
                return false;
            });
        })
    </script>
    <script src="../../sysCommon/sysScripts/parent1.js" type="text/javascript"></script>
    <script src="../../sysCommon/sysScripts/commompage.js" type="text/javascript"></script>
    <style type="text/css">
        .main_body .uploadify-button
        {
            background-color: transparent;
            border: none;
            padding: 0;
        }
        .main_body .uploadify:hover .uploadify-button
        {
            background-color: transparent;
        }
        .main_body .uploadify-queue-item .cancel a
        {
            background: url("../../sysCommon/sysScripts/Uploadfly/3.1/uploadify-cancel.png") no-repeat scroll 0 0 transparent;
        }
        .imgeditarea
        {
        }
        .imgadmin
        {
            display: none;
        }
        .execupload
        {
            margin: 5px 0px 5px 0px;
        }
        .execupload a
        {
            color: brown;
        }
        .SEOInfo
        {
            display: block;
        }
        .SEOInfo > td
        {
            padding-bottom: 10px;
        }
    </style>
</head>
<body>
    <form id="form1" runat="server">
    <div class="main_body">
        <!--右侧-->
        <div class="right_body">
            <div class="right_top">
                <a href="###">CMS内容管理平台</a>><a href="#">首页</a><asp:Literal ID="LitPaagePath" runat="server"></asp:Literal>
            </div>
            <div class="title">
                <div class="information">
                    栏目名称：<font style="color: #6a544a;"><asp:Literal ID="LitPageName" runat="server"></asp:Literal></font></div>
            </div>
            <table border="0" align="left" cellpadding="0" cellspacing="0" style="width: 100%"
                class="edit">
                <tr>
                    <td align="left" valign="middle" height="36">
                        <div class="edit_title">
                            <div class="tit_name">
                                编辑内容</div>
                            <div class="menu">
                                <a href="###">
                                    <img src="../../sysCommon/sysImages/systerm/menu_up.gif" alt="向上关闭" width="36" height="36" /></a>
                                <!--<img src="../../sysCommon/sysImages/systerm/menu_down.gif" width="36" height="36" />-->
                            </div>
                        </div>
                    </td>
                </tr>
                <tr>
                    <td style="width: auto; padding-top: 10px; padding-left: 20px; padding-bottom: 10px;">
                        <table border="0" align="left" cellpadding="0" cellspacing="0" style="width: 100%">
                            <tr>
                                <td align="left" valign="middle" style="padding-top: 5px;">
                                    <table width="auto" border="0" align="left" cellpadding="0" cellspacing="0">
                                        <tr>
                                            <td align="left" valign="top" width="65">
                                                展&nbsp;&nbsp;示&nbsp;&nbsp;图：
                                            </td>
                                            <td align="left" valign="middle" width="185">
                                                <a href="###" class="imgeditBtn">编辑</a>
                                            </td>
                                        </tr>
                                        <tr class="imgeditarea">
                                            <td align="left" valign="top" width="65">
                                                &nbsp;
                                            </td>
                                            <td align="left" valign="middle" width="185">
                                                <table width="100%" border="0" cellpadding="0" cellspacing="0">
                                                    <tr>
                                                        <td align="left" valign="top">
                                                            <img src="../../sysCommon/sysImages/systerm/test1.jpg" id="ImgShow" runat="server"
                                                                width="160" style="border: #adadad solid 1px;" /><span style="padding: 0 5px;"><img
                                                                    src="../../sysCommon/sysImages/systerm/notice.gif" width="10" height="10" /></span>
                                                        </td>
                                                    </tr>
                                                    <tr>
                                                        <td align="left" valign="middle" height="22" style="padding-top: 4px;">
                                                            <a href="#" title="浏览图库" class="imgadmin">
                                                                <img src="../../sysCommon/sysImages/systerm/button_1.jpg" alt="浏览图库" width="71" height="22"
                                                                    style="margin-right: 16px;" /></a> <a href="#" title="本地上传" class="imgadmin">
                                                                        <img src="../../sysCommon/sysImages/systerm/button_2.jpg" width="71" height="22"
                                                                            alt="本地上传" /></a>
                                                            <input id="custom_file_upload" type="file" name="Filedata" />
                                                            <asp:HiddenField ID="Imghidden" runat="server" Value="" />
                                                            <asp:HiddenField ID="Hiddenpathmain" runat="server" Value="" />
                                                            <p class="execupload">
                                                                <a href="javascript:$('#custom_file_upload').uploadifyUpload()">上传所选</a></p>
                                                        </td>
                                                    </tr>
                                                </table>
                                            </td>
                                        </tr>
                                    </table>
                                </td>
                            </tr>
                            <tr>
                                <td align="left" valign="middle" style="padding-top: 5px;">
                                    <table width="100%" border="0" align="left" cellpadding="0" cellspacing="0">
                                        <tr>
                                            <td align="left" valign="top" width="65">
                                                简&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;介：
                                            </td>
                                            <td align="left" valign="top">
                                                <textarea name="txtinfo" cols="4" rows="4" style="width: 400px; height: 80px;" id="txtinfo"
                                                    runat="server"></textarea>
                                            </td>
                                        </tr>
                                    </table>
                                </td>
                            </tr>
                        </table>
                    </td>
                </tr>
                <tr>
                    <td align="left" valign="top" style="padding-top: 10px; padding-left: 20px; padding-bottom: 5px;"
                        height="300">
                        <table border="0" align="left" cellpadding="0" cellspacing="0" style="width: 100%">
                            <tr>
                                <td align="left" valign="middle" style="padding-top: 5px;">
                                    <table width="100%" border="0" align="left" cellpadding="0" cellspacing="0">
                                        <tr>
                                            <td align="left" valign="top" width="65">
                                                栏目内容：
                                            </td>
                                            <td align="left" valign="top">
                                                <textarea name="txtcontent" cols="4" rows="4" style="width: 800px; height: 300px;"
                                                    id="txtContent" runat="server"></textarea>
                                            </td>
                                        </tr>
                                    </table>
                                </td>
                            </tr>
                        </table>
                    </td>
                </tr>
                <tr>
                    <td height="30" valign="middle" style="padding-left: 20px;">
                        <table border="0" align="left" cellpadding="0" cellspacing="0" style="width: 100%">
                            <tr>
                                <td align="left" valign="middle" style="padding-top: 5px;">
                                    <table width="100%" border="0" align="left" cellpadding="0" cellspacing="0">
                                        <tr>
                                            <td align="left" valign="top" width="65">
                                                &nbsp;
                                            </td>
                                            <td align="left" valign="top">
                                                <table width="100%" border="0" cellpadding="0" cellspacing="0" height="30">
                                                    <tr>
                                                        <td align="left" valign="middle" width="10">
                                                            <input name="" type="checkbox" value="" />
                                                        </td>
                                                        <td align="left" valign="middle" width="60">
                                                            审核/发布
                                                        </td>
                                                        <td align="left" valign="middle" width="60">
                                                            &nbsp;
                                                        </td>
                                                        <td align="left" valign="middle">
                                                            &nbsp;
                                                        </td>
                                                    </tr>
                                                </table>
                                            </td>
                                        </tr>
                                    </table>
                                </td>
                            </tr>
                            <tr>
                                <td align="left" valign="middle" height="30" style="padding-left: 20px;">
                                    <table width="auto" border="0" align="left" cellpadding="0" cellspacing="0">
                                        <tr>
                                            <td align="left" valign="middle" width="65" height="30">
                                                S&nbsp;&nbsp;E&nbsp;&nbsp;O：
                                            </td>
                                            <td align="left" valign="middle">
                                                <a href="#" class="SEObtn">开关SEO设置</a>
                                            </td>
                                        </tr>
                                    </table>
                                </td>
                            </tr>
                            <tr class="SEOInfo">
                                <td align="left" valign="middle" height="40" style="padding-left: 20px;">
                                    <table width="auto" border="0" align="left" cellpadding="0" cellspacing="0">
                                        <tr>
                                            <td align="left" valign="middle" width="75" height="40">
                                                SEO标题：
                                            </td>
                                            <td align="left" valign="middle">
                                                <textarea name="txtseotitle" cols="3" rows="3" style="width: 500px; height: 40px;"
                                                    id="txtseotitle" runat="server"></textarea>
                                            </td>
                                        </tr>
                                    </table>
                                </td>
                            </tr>
                            <tr class="SEOInfo">
                                <td align="left" valign="middle" height="40" style="padding-left: 20px;">
                                    <table width="auto" border="0" align="left" cellpadding="0" cellspacing="0">
                                        <tr>
                                            <td align="left" valign="middle" width="75" height="40">
                                                SEO关键字：
                                            </td>
                                            <td align="left" valign="middle">
                                                <textarea name="txtseokeywords" cols="3" rows="3" style="width: 500px; height: 40px;"
                                                    id="txtseokeywords" runat="server"></textarea>
                                            </td>
                                        </tr>
                                    </table>
                                </td>
                            </tr>
                            <tr>
                                <td align="left" valign="middle" height="30" style="padding-left: 20px;">
                                    <table width="auto" border="0" align="left" cellpadding="0" cellspacing="0">
                                        <tr>
                                            <td align="left" valign="middle" width="65" height="30">
                                                转向链接：
                                            </td>
                                            <td align="left" valign="middle" width="435">
                                                <input name="" type="text" style="width: 400px;" id="TextRedirectUrl" runat="server" />
                                            </td>
                                        </tr>
                                    </table>
                                </td>
                            </tr>
                            <tr class="SEOInfo">
                                <td align="left" valign="middle" height="40" style="padding-left: 20px;">
                                    <table width="auto" border="0" align="left" cellpadding="0" cellspacing="0">
                                        <tr>
                                            <td align="left" valign="middle" width="75" height="40">
                                                SEO描述：
                                            </td>
                                            <td align="left" valign="middle">
                                                <textarea name="txtseodescription" cols="3" rows="3" style="width: 500px; height: 40px;"
                                                    id="txtseodescription" runat="server"></textarea>
                                            </td>
                                        </tr>
                                    </table>
                                </td>
                            </tr>
                        </table>
                    </td>
                </tr>
                <tr>
                    <td height="40" valign="middle" style="padding-left: 20px;">
                        <table border="0" align="left" cellpadding="0" cellspacing="0" style="width: 100%">
                            <tr>
                                <td align="left" valign="middle" style="padding-top: 5px;">
                                    <table width="100%" border="0" align="left" cellpadding="0" cellspacing="0">
                                        <tr>
                                            <td align="left" valign="top" width="65">
                                                &nbsp;
                                            </td>
                                            <td align="left" valign="top">
                                                <table width="200" border="0" align="left" cellpadding="0" cellspacing="0" height="40">
                                                    <tr>
                                                        <td align="left" valign="middle" width="100">
                                                            <asp:ImageButton ID="SubmitBtn" runat="server" ImageUrl="../../sysCommon/sysImages/systerm/button_5.jpg"
                                                                AlternateText="提交内容" title="提交内容" Width="87" Height="27" OnClick="SubmitBtnHander" />
                                                        </td>
                                                        <td align="left" valign="middle" width="100">
                                                            <a href="#" title="重置信息">
                                                                <img src="../../sysCommon/sysImages/systerm/button_6.jpg" alt="重置信息" width="87" height="27" /></a>
                                                        </td>
                                                    </tr>
                                                </table>
                                            </td>
                                        </tr>
                                    </table>
                                </td>
                            </tr>
                        </table>
                    </td>
                </tr>
            </table>
        </div>
    </div>
    <!--右侧结束-->
    </form>
</body>
</html>
